package com.itheima.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.CheckItem;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CheckItemMapper extends BaseMapper<CheckItem> {

    @Select("select i.* from t_item_group t left join t_check_item i\n" +
            "on t.check_item_id = i.id\n" +
            "where  i.is_delete=0 and check_group_id = #{id}")
    List<CheckItem> findBygroupId(@Param("id") Long id);
}
